package com.kj.xuyuan.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kj.xuyuan.R;
import com.kj.xuyuan.http.UrlConstants;
import com.kj.xuyuan.util.GlideUtils;

import java.util.List;

import androidx.annotation.Nullable;

public class DynamicImageAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public DynamicImageAdapter() {
        super(R.layout.item_custom_iamge);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        ImageView ivImage = helper.getView(R.id.iv_image);
        GlideUtils.loadRoundImage(mContext,ivImage, UrlConstants.Base_Http+item,8,R.mipmap.ic_error);
    }
}
